function fetchGoods(goodsId) {
  var provider = fo('provider').value;
  if (provider == '') {
    myMsg('请选择供应商', 'warn');
    return;
  }
  openSmartModuleSelTableDrawer(0, 3, {moduleCode: '17114523608596331062', listPageParams: {goodsId:goodsId, provider:provider}});
}

if (eventTarget) {
  // 注销事件，以免重复注册事件导致重复调用
  eventTarget.clean();
  eventTarget.addEvent(EVENT_TYPE.NEST_ADD, onNestAdd);
  eventTarget.addEvent(EVENT_TYPE.NEST_EDIT, onNestEdit);
  eventTarget.addEvent(EVENT_TYPE.NEST_DEL, onNestDel);
}

function onNestAdd(event) {
  console.log('onNestAdd event', event);
}

function onNestEdit(event) {
  console.log('onNestEdit event', event);
}

function onNestDel(event) {
  console.log('onNestDel event', event);
}

// function onNestSheetChange(moduleCode, "update", fdaoId) {
//   console.log('onNestChange', moduleCode, fdaoId);
// }